package etc.spec.ytt.week02;

public class Prawn {
    private String name;
    public Prawn(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }
    public void eat(Sheel s){
        System.out.println(this.name+" eat "+s.getName());
    }
    public  void eat(String s){
        System.out.println(this.name+" eat "+s);
    }
    public static void main(String[]args){
        Sheel s=new Sheel("shanbei");
        Prawn p=new Prawn("dalongxia");
        s.eat("haocao");
        p.eat(s);
    }
}

